package com.xiaozhengkeji.starbootserver.bean;

public enum ResponseType {

    UNKNOWN(0, "未知错误"),
    SUCCESS(200, "成功"),
    NOT_MODIFIED(304, "未修改"),
    FAIL(400, "失败"),
    UNAUTHORIZED(401, "未授权"),
    FORBIDDEN(403, "禁止访问"),
    NOT_FOUND(404, "未找到"),
    INTERNAL_SERVER_ERROR(500, "服务器内部错误"),
    NOT_IMPLEMENTED(501, "未实现"),
    BAD_GATEWAY(502, "错误网关"),
    SERVICE_UNAVAILABLE(503, "服务不可用"),
    GATEWAY_TIMEOUT(504, "网关超时");

    private String NAME;
    private Integer CODE;

    ResponseType(Integer code, String name) {
        this.NAME = name;
        this.CODE = code;
    }

    public String getNAME() {
        return NAME;
    }

    public void setNAME(String NAME) {
        this.NAME = NAME;
    }

    public Integer getCODE() {
        return CODE;
    }

    public void setCODE(Integer CODE) {
        this.CODE = CODE;
    }
}
